package com.woniuxy.entity;

public class ResponseEntity<T> {
	public static final int SUCCESS = 1;
	public static final int FAIL = 0;
	
	private int code;//状态码
	private String msg;//提示消息
	private T data;//数据
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	public ResponseEntity(int code, String msg, T data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	}
	public ResponseEntity() {
		
	}
	
}
